package com.dy.lock.screen.service;

import java.util.List;

import com.dy.lock.screen.pojo.ScoreInfo;
import com.dy.lock.screen.vo.EverydayToday;

public interface ScoreService {

	/**
	 * 查询总收入账单
	 * 
	 * @param customerId
	 * @return
	 */
	public List<ScoreInfo> queryIncomeBills(String customerId);

	/**
	 * 查询总支出账单
	 * 
	 * @param customerId
	 * @return
	 */
	public List<ScoreInfo> queryPayBills(String customerId);

	/**
	 * 查询每天收入账单
	 * 
	 * @param customerId
	 * @param month
	 * @return
	 */
	public List<EverydayToday> queryIncomeBillDetail(String customerId,
			String month);

	/**
	 * 查询每天支出账单
	 * 
	 * @param customerId
	 * @param month
	 * @return
	 */
	public List<EverydayToday> queryPayBillDetail(String customerId,
			String month);

	public ScoreInfo getExchangedScore(ScoreInfo scoreInfo);

	public ScoreInfo getTodayScore(ScoreInfo scoreInfo);

	// public int customerSignIn(ScoreInfo scoreInfo);

	/**
	 * 通过主键查询
	 * 
	 * @param costomerId
	 * @return
	 */
	public ScoreInfo queryByPrimaryKey(String costomerId);

	/**
	 * 更新积分
	 * 
	 * @param scoreInfo
	 * @return
	 */
	public int updateScore(ScoreInfo scoreInfo);

	/**
	 * 保存信息
	 * 
	 * @param scoreInfo
	 * @return
	 */
	public int save(ScoreInfo scoreInfo);
}
